package com.mzpai.product.service.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mzpai.product.mapper.StoreProductCateMapper;
import com.mzpai.product.model.StoreProductCate;
import com.mzpai.product.service.StoreProductCateService;
import com.mzpai.service.impl.BaseServiceImpl;
/**
 *
 * <b>商品品牌 | Service</b><br>
 *
 * guguanfei 2021-03-16 18:48:49
 * 
 *  @version 1.0.0
 *
 */
@Service
public class StoreProductCateServiceImpl extends BaseServiceImpl<StoreProductCate> implements StoreProductCateService {

	Logger logger = LoggerFactory.getLogger(StoreProductCateServiceImpl.class);

	@Autowired 
	private StoreProductCateMapper mapper;

	@Override
	public List<Integer> getProductIdListByCateIdList(List<Integer> cateIdList) {
		Map<String,Object> map=new HashMap<String,Object>();
		map.put("cateIdList", cateIdList);
		List<Integer> productIdList=mapper.getProductIdListByCateIdList(map);
		return productIdList;
	}

	@Override
	public void deleteByProductId(Integer productId) {
		mapper.deleteByProductId(productId);
	}

	@Override
	public void syncProductCate(int productId) {
		mapper.syncProductCate(productId);
	}

	
}